import request from '@/utils/request'

export function addMerchantType(data) {
  return request({
    url: '/juanbusiness/merchant-type/add',
    method: 'post',
    data
  })
}

export function findMerchantType(page,size) {
  return request({
    url: '/juanbusiness/merchant-type/findPage',
    method: 'get',
    params: {page: page,size: size}
  })
}

export function detailMerchantType(id) {
  return request({
    url: '/juanbusiness/merchant-type/get',
    method: 'get',
    params: {id: id}
  })
}

export function editMerchantType(data) {
  return request({
    url: '/juanbusiness/merchant-type/edit',
    method: 'put',
    data
  })
}

export function enableMerchantType(data) {
  return request({
    url: '/juanbusiness/merchant-type/enable',
    method: 'put',
    data
  })
}

export function delMerchantType(id) {
  return request({
    url: '/juanbusiness/merchant-type/del',
    method: 'delete',
    params: {id: id}
  })
}
